home *** CD-ROM | disk | FTP | other *** search
- { SPX Library Version 3.0 Copyright 1993 Scott D. Ramsay }
-
- SPX_JOY is the joystick handling unit. It can read up two joysticks.
-
- var
- stickx, { X locations for joystick 1 & 2 }
- sticky : array[1..2] of integer; { Y locations for joystick 1 & 2 }
- button1, { button 1 for joystick 1 & 2 }
- button2 : array[1..2] of boolean; { button 2 for joystick 1 & 2 }
-
- ───────────────────────────────────────────────────────────────────────────
- function joythere : boolean;
-
- Returns TRUE if any joystick is connected to the computer.
-
- ───────────────────────────────────────────────────────────────────────────
- function joy1there : boolean;
-
- Returns TRUE if joystick 1 is connected to the computer.
-
- ───────────────────────────────────────────────────────────────────────────
- function joy2there : boolean;
-
- Returns TRUE if joystick 2 is connected to the computer.
-
- ───────────────────────────────────────────────────────────────────────────
- procedure setstick(h:integer);
-
- Reads the joystick setting the global variables.
-
- H: Joystick number to read. 1 or 2
-
- ───────────────────────────────────────────────────────────────────────────
-